function errors = NN_vali(net,inputs,targets)
    x = inputs;%joint_train_pv;
    t = targets;%abs_error_vector;

    % Test the Network
    y = net(x);
    e = gsubtract(t,y);
    errors = e;
end